package com.zhongshengnetwork.rightbe.Constant;

/*
String imageUri = "http://site.com/image.png"; // from Web
		String imageUri = "file:///mnt/sdcard/image.png"; // from SD card
		String imageUri = "content://media/external/audio/albumart/13"; // from content provider
		String imageUri = "assets://image.png"; // from assets
		String imageUri = "drawable://" + R.drawable.image; // from drawables (only images, non-9patch)
*/

public interface Constant {

	public static final int PortDisplayLength = 40;//竖排显示最大字数

	public static final String weijuTakePhoto = "weiju_take_image.jpg";
	public static final int imgMaxSize = 1400;

	//内网测试环境
	//public static final String HOST = "http://192.168.0.102:8080/";
	//public static final String MINIAPPHOST = "http://192.168.0.102:8080/";

	//外网测试环境
//	public static final String HOST = "http://test.daydayrise.cn/rightbe/";
//	public static final String MINIAPPHOST = "http://test.daydayrise.cn/rightbe/";
//	public static final String QRCodeHOST = "http://test.daydayrise.cn/rightbe/";//二维码链接

//	public static final String HOST = "http://manager.daydayrise.cn/rightbe/";
//	public static final String MINIAPPHOST = "http://manager.daydayrise.cn/rightbe/";
//	public static final String QRCodeHOST = "http://manager.daydayrise.cn/rightbe/";//二维码链接

//	public static final String HOST = "http://backen.daydayrise.cn/rightbe/";
//	public static final String MINIAPPHOST = "http://backen.daydayrise.cn/rightbe/";
//	public static final String QRCodeHOST = "http://backen.daydayrise.cn/rightbe/";//二维码链接

	//生产环境
	public static final String HOST = "https://app.daydayrise.cn/rightbe/"; //"https://app.daydayrise.net/rightbe/";
	public static final String MINIAPPHOST = "https://app.daydayrise.cn/rightbe/"; //"https://app.daydayrise.net/rightbe/"
	public static final String QRCodeHOST = "http://app.daydayrise.cn/rightbe/";//二维码链接

	//DES加密密匙
	public static final String DESKey = "96323128";//94323125
	
	//24小时的毫秒数量
	public static final long msOfDay = 86400000;
	//2分钟毫秒数
	public static final long msgtimeout = 120000;

	//融云服务器数据超时同步
	public static final long mRCTimeout = 259200000;
	
	//钱单位：(分）
	public static final int UtilsCount = 100;
	
	//上限数量限制
	public static final int MaxGroupNumber = 500;

	//圆角大小
	public static final int CornerRadius = 15;
	public static final int LangCornerRadius = 6;
	
	//认证状态
	public static final int noAuth = 1;
	public static final int needAuth = 0;
	
	//验证码类型
	public static final int registerCode = 0;//注册验证码
	public static final int passwordCode = 1;//修改密码验证码

	//第三方登陆相关
	public static final int wxloginType = 0;//微信登陆
	public static final int wbloginType = 1;//微博登陆
	public static final int qqloginType = 2;//qq登陆
	
	//即时通讯相关
	public static final String APPKEY = "152564";
	public static final String IMHOST = "192.168.1.102";//9.113
	public static final String IMPORT = "9123";
	
	//redis缓存相关
	public static final String RedisHOST = "127.0.0.1";
	public static final int RedisPORT = 6379;
	public static final String RedisPassword = "0987654321";
	public static final int RedisTimeount = 3600000;//token缓存时间
	public static final int CodeTimeOutTime = 900;//验证码缓存时间
	public static final long GoodsNumberTimeOuntTime = Long.MAX_VALUE;//商品抽奖号码的缓存时间
	
	//公共定义
	public static final int MSG_FROM = 0;//接收到的消息
	public static final int MSG_TO = 1;//发送的消息
	public static final int MSG_UNREAD = 0;//消息未读
	public static final int MSG_READ = 1;//消息已读
	public static final int orderByDownWay = 0;//降序方式
	public static final int orderByUpWay = 1;//升序方式
	
	//员工身份相关
	public static final int SuperAuthority = 10000;//超级管理员身份
	public static final int userAuthority = 0;//用户管理权限
	public static final int goodsAuthority = 1;//商品管理权限
	public static final int sailAuthority = 2;//运营管理权限
	public static final int orderAuthority = 3;//订单管理权限
	public static final int workerAuthority = 4;//员工管理权限
	
	//好友状态
	public static final int FriendType = 0;
	public static final int BlackType = 1;
	public static final int DeleteType = 2;
	
	//群成员身份
	public static final int memberType = 0;
	public static final int managerType = 1;
	public static final int ownerType = 2;
	
	//群成员操作
	public static final int addMemberType = 0;
	public static final int deleteMemberType = 1;
	public static final int memberQuitType = 2;
	
	//生活圈相关
	//发布类型
	public static final int pictureLifeCircleType = 0;//相册类型
	public static final int videoLifeCircleType = 1;//小视频
	public static final int shareLifeCircleType = 2;//分享
	//发布来源
	public static final int originalLifeCircleType = 0;//原创发布
	public static final int transmitLifeCircleType = 1;//转发的
	//分享状态
	public static final int cannotShareLifeCircleType = 0;//不允许分享
	public static final int canShareLifeCircleType = 1;//允许分享
	//可见范围类型
	public static final int friendVisibleType = 0;//好友可见
	public static final int sectionVisibleType = 1;//部分好友可见
	public static final int sectionUnVisibleType = 2;//部分好友不可见
	public static final int allVisibleType = 3;//所有人可见
	//生活圈笔芯评论类型
	public static final int  lifeCircleCommentType = 0;//评论
	public static final int lifeCircleLikeType = 1;//笔芯
	public static final int lifeCircleCancleLikeType = 2;//取消笔芯
	//生活圈限制数量类型
	public static final int lifeCircleStrangerNumber = 10;//非好友最多查看10条生活圈


	//reportType:1-举报人；2-举报微句；3-举报评论；4-举报微纸条；5-举报微纸条内容；6-举报微纸条评论
	public static final int ReportPersonType = 1;
	public static final int ReportWeijuType = 2;
	public static final int ReportCommentType = 3;
	public static final int ReportWZTType = 4;
	public static final int ReportWZTContentType = 5;
	public static final int ReportWZTCommentType = 6;
	
	//消息状态
	public static interface MessageState{
		public static final int  NormalMsg = 0;
	}
	
	//数据库状态
	public static final int NormalState = 0;//正常状态
	public static final int InValidState = -1;//无效状态
	
	//购物圈相关
	//按照购买方式分类
	public static final int luckyGoodsType = 0;//幸运抽奖商品
	public static final int tiyanGoodsType = 1;//体验商品
	public static final int buyGoodsType = 2;//一次性购买商品
	//购买方式
	public static final int cashBuyType = 0;//现金购买
	public static final int jifenBuyType = 1;//积分购买
	public static final int jingyanBuyType = 2;//经验购买
	//商品类型
	public static final int commonGoodsType = 0;//普通类型
	public static final int limitGoodsType = 1;//限购类型
	public static final int oneBuyGoodsType = 2;//一次性购买类型
	public static final int rushGoodsType = 3;//抢购类型
	public static final int freshGoodsType = 4;//尝鲜类型（根据时令尝鲜）
	public static final int jifenGoodsType = 5;//积分类型
	public static final int jingyanGoodsType = 6;//经验类型
	//商品状态
	public static final int unOnlineState = 0;//未上架
	public static final int onlineState = 1;//上架
	public static final int offlineState = 2;//下架
	//在售商品状态
	public static final int goodsWaitingSailState = 0;//未开始
	public static final int goodsSailingState = 1;//正在销售中
	public static final int goodsWaitingPrizeState = 2;//等待揭晓
	public static final int goodsPrizingState = 3;//正在揭晓
	public static final int goodsPrizedState = 4;//已经揭晓
	//首页推荐状态
	public static final int normalRecommendState = 0;//正常状态
	public static final int stopRecommendState = 1;//禁用状态
	//首页推荐类型
	public static final int urlType = 0;//链接类型
	public static final int goodsType = 1;//商品类型
	public static final int recommendGoodsType = 2;//人气商品类型
	//获取在售商品排序方式
	public static final int goodsOrderByProgressType = 0;//根据进度排序
	public static final int goodsOrderByNumberType = 1;//根据人气排序
	public static final int goodsOrderByLimitType = 2;//根据限购排序
	public static final int goodsOrderByValueUpType = 3;//根据价值升高排序
	public static final int goodsOrderByValueDownType = 4;//根据价值降序排序
	//订单状态
	public static final int waitingAddressOrderState = 0;//等待用户完善物流信息
	public static final int userConfirmAddressOrderState = 1;//用户已经确认物流信息
	public static final int serverConfirmOrderState = 2;//平台已经确认相关信息
	public static final int sendGoodsOrderState = 3;//平台已经发货
	public static final int userGetGoodsState = 4;//用户已经收货
	public static final int userConfrimGetGoodsState = 5;//用户已经确认收货
	public static final int userDryGoodsState = 6;//用户已经晒单
	public static final int userNotGetGoodsState = -1;//用户无法接收货物
	//后台物流信息类型
	public static final int commonLogisticsInfoType = 0;//普通信息
	public static final int confirmUserInfoType = 1;//确认用户信息
	public static final int sendGoodsInfoType = 2;//已发货信息
	public static final int arrivedInfoType = 3;//已送达信息
	
	//订单物流方式
	public static final int CustomerGetWay = 0;//客户自取
	public static final int SFExpressWay = 1;//顺丰快递
	
	//支付方式
	public static final int weixinPayType = 0;//微信支付
	public static final int accountPayType = 1;//账户余额支付
	public static final int redPayType = 2;//红包支付
	
	//支付状态
	public static final int waitingForPayType = 0;//待付款
	public static final int payedType = 1;//已经付款
	
	//用户账户相关
	//账户值类型
	public static final int moneyAccountType = 0;//人民币钱
	public static final int jifenAccountType = 1;//积分
	public static final int jingyanAccountType = 2;//经验
	//账户值方向
	public static final int addDirectionType = 0;//增加
	public static final int useDirectionType = 1;//使用
	
	//购物车状态
	public static final int waitingForPayState = 0;//待付款
	public static final int payedState = 1;//已经付款
	
	//红包类型
	public static final int privateRedType = 0;//私人红包
	public static final int comRedType = 1;//普通红包
	public static final int randRedType = 2;//随机红包
	public static final int guessRedType = 3;//猜猜红包
	public static final int prizeRedType = 4;//抽奖红包
	//红包状态
	public static final int redValidState = 0;//进行中
	public static final int redFinishState = 1;//结束
	public static final int redInValidState = 2;//已过期

	public static final String DefaultText = "优物兔是一款以社交圈、生活圈为基础，以购物圈为中心的社交式电商应用。优物兔有两层含义：一是“有物淘”，指的是我们以众筹的模式销售商品；二是“优物淘”，指的是销售的商品类型为品牌商品，而且是新款、性价比款、经典款、受欢迎款。“品牌、品质、品味”就是优物兔追求的理念。";
	
	//用户相关操作接口返回码
	public static class UserReturnCode{
		public static String CODE_SUCCESS ="0";
		public static String CODE_10000 ="10000";
		public static String CODE_10001 ="10001";
		public static String CODE_10002 ="10002";
		public static String CODE_10003 ="10003";
		public static String CODE_10004 ="10004";
		public static String CODE_10005 ="10005";
		public static String CODE_10006 ="10006";
		public static String CODE_10007 ="10007";
		public static String CODE_10008 ="10008";
		public static String CODE_10009 ="10009";
		public static String CODE_10010 ="10010";
		public static String CODE_10011 ="10011";
		public static String CODE_10012 ="10012";
		public static String CODE_10013 ="10013";
		public static String CODE_10014 ="10014";
		public static String CODE_10015 ="10015";
		public static String CODE_10016 ="10016";
		public static String CODE_10017 ="10017";
		public static String CODE_10018 ="10018";
		public static String CODE_10019 ="10019";
		public static String CODE_10020 ="10020";
		public static String CODE_10021 ="10021";
		public static String CODE_10022 ="10022";
		public static String CODE_10023 ="10023";
		public static String CODE_10024 ="10024";
		public static String CODE_10025 ="10025";
		public static String CODE_10026 ="10026";
		public static String CODE_10027 ="10027";
		public static String CODE_10028 ="10028";
		public static String CODE_10029 ="10029";
		public static String CODE_10030 ="10030";
		public static String CODE_10031 ="10031";
		public static String CODE_10032 ="10032";
		public static String CODE_10033 ="10033";
		public static String CODE_10034 ="10034";
		public static String CODE_10035 ="10035";
	}
	//用户相关操作接口返回提示
	public static class UserReturnMsg{
		public static String MSG_SUCCESS ="操作成功";
		public static String MSG_10000 ="缺少请求参数";
		public static String MSG_10001 ="无效的手机号码";
		public static String MSG_10002 ="手机号已经注册";
		public static String MSG_10003 ="手机号未注册";
		public static String MSG_10004 ="验证码错误";
		public static String MSG_10005 ="账户未注册";
		public static String MSG_10006 ="密码错误";
		public static String MSG_10007 ="请求第三方平台接口失败";
		public static String MSG_10008 ="第三方平台用户已注册";
		public static String MSG_10009 ="用户已经绑定第三方平台账号";
		public static String MSG_10010 ="第三方平台用户还未在本系统注册";
		public static String MSG_10011 ="登陆过期，请重新登陆";
		public static String MSG_10012 ="手机号已经被绑定";
		public static String MSG_10013 ="验证码错误或失效";
		public static String MSG_10014 ="上传头像失败";
		public static String MSG_10015 ="用户名已经存在";
		public static String MSG_10016 ="不是有效的用户名";
		public static String MSG_10017 ="上传地理位置失败";
		public static String MSG_10018 ="操作异常";
		public static String MSG_10019 ="用户名或者密码不能为空";
		public static String MSG_10020 ="查找结果为空";
		public static String MSG_10021 ="参数格式有误";
		public static String MSG_10022 ="已经是好友";
		public static String MSG_10023 ="你不是好友";
		public static String MSG_10024 ="对方拒绝接受你的消息";
		public static String MSG_10025 ="标签名称已经存在";
		public static String MSG_10026 ="你的群已经达到上限啦";
		public static String MSG_10027 ="群不存在";
		public static String MSG_10028 ="群主才能修改";
		public static String MSG_10029 ="你不是群成员";
		public static String MSG_10030 ="系统繁忙,请稍后";
		public static String MSG_10031 ="创建群失败";
		public static String MSG_10032 ="你没有添加群成员权限";
		public static String MSG_10033 ="获取验证码失败";
		public static String MSG_10034 ="你已经设置了20个地址，请删除后新增";
		public static String MSG_10035 ="账户余额不足";
	}
	
	//以下是即时通讯部分
	public class Common{  
		public final static String STATUS_1="1";
		public final static String STATUS_0="0";
		public final static String STATUS_2="2";
		public final static String STATUS_3="3";
		public final static String TYPR_1="1";
		public final static String TYPR_2="2";
		public final static String TYPR_9 = "9";
	   
	}
	public class User{
		public final static Integer SUCCESS_CODE=1;
		public final static Integer ERROR_CODE=0;
		public final static String User="User";

	}
	
	public class RequestParam
	{
		public final static String CURRENTPAGE="currentPage";
		public final static String TYPE="type";
		public static final String SIZE = "size";
		
	}
	
	public class Number{
		
		public final static Integer INT_0=0;
		public final static Integer INT_10=10;
	    public final static Integer INT_403=403;

	}

	//小灰条消息
	public static interface XHTMessageType{
		//创建群
		String Group_Create = "0";
		//群成员修改昵称
		String Group_MemberName = "100";
		//修改群公告
		String Group_Report = "101";
		//修改群名称
		String Group_Name = "102";
		//修改群认证状态
		String Group_Auth = "103";
		//加人群聊
		String Group_Join = "104";
		//退出群聊
		String Group_quit = "105";
		//移除出群
		String Group_Delete = "106";
		//群解散
		String Group_Dismiss = "107";
	}

	//消息列表分类
	public static interface MessageListType{
		int DefaultMsgType = 0;//点赞、收藏、分享
		int CommentMsgType = 1;//评论相关
		int CareMsgType = 2;//关注相关
		int NotifyMsgType = 3;//通知相关：反馈、荣誉、系统通知
	}
	
	//系统消息类型汇总
	public static interface MessageType{
		//系统定制消息---好友验证请求
		String FRIEND_REQUEST = "1000";
		//系统定制消息---同意好友请求
		String FRIEND_AGREE = "1001";
		//系统定制消息---进群请求
		String GROUP_REQUEST = "1012";
		//系统定制消息---同意进群请求
		String GROUP_AGREE = "1003";
		//系统定制消息---生活圈有更新
		String LifeCircle_NEWMSG = "1004";
	    //系统定制消息---生活圈有笔芯评论
		String LifeCircle_NewComment = "1005";
		//系统定制消息---购物圈购买结果通知
		String ShopCircle_NewComment = "1006";
		//系统定制消息---购物获奖通知
		String ShopCircle_GetGoodsComents = "1007";
		//系统定制消息---手机通讯录联系人
		String Moblie_GetContacts = "1008";
		//系统定制消息---群成员同步
		String Group_AsyncMembers = "1009";
		//系统定制消息---获取群成员
		String Group_GetMembers = "1010";
		//系统定制消息---转让群主管理权
		String Group_ChangeOwner = "1011";
		//系统定制消息---红包退款
		String Red_Back = "1013";
		//系统定制消息---获得体验商品奖励通知
		String Get_TiyanGoods = "1014";
		//系统定制消息---物流信息更新通知
		String Logistic_Update = "1015";
		//系统定制消息--京东支付
		String JDPay_Result = "1016";
		//系统定制消息--生活圈审核消息
		String Life_Result = "1017";
		//系统定制消息--生活圈打赏消息
		String Reward_Result = "1018";
		//系统定制消息--生活圈关注消息
		String LifeLike_Result = "1019";

		//系统定制消息--生活圈笔芯信息
		String LifeDZ_Result = "1020";
		//系统定制消息--生活圈评论信息
		String LifeC_Result = "1021";
		//系统定制消息--生活圈评论回复
		String LifeCR_Result = "1022";
		//系统定制消息--生活圈评论笔芯
		String LifeCL_Result = "1023";
		//系统定制消息--微句获奖通知
		String LangPrize_Result = "1024";
		//系统定制消息--联系我们
		String Contact_Result = "1025";
		//系统定制消息--所有通知信息
		String SelfInfo = "11111";

		//通知粉丝有更新了微句
		String Care_Lang_Update = "3000";
		//有未读消息通知
		String New_Msg_Notify = "4000";

		//有未读消息通知
		String New_SX_Notify = "5000";

		//微纸条点赞通知
		String WeiShu_Like_Notify = "6000";
		//微纸条评论通知
		String WeiShu_Comment_Notify = "6001";
		//微纸条订阅通知
		String WeiShu_Subscribe_Notify = "6002";
		//微纸条内容点赞、分享、评论、收藏通知
		String WeiShu_Content_Notify = "6003";
		//微纸条评论点赞、回复、收藏通知
		String WeiShu_Content_Comment_Notify = "6004";

		//申请分类授权通知
		String Classify_Request_Notify = "6005";
		//可以查看分类通知（审核通过或者主动要求）
		String Classify_Authed_Notify = "6006";

		//进入智慧排行榜
		String Rank_Smart_Notify = "6107";

		//以下是客户端新增消息类型
		String Weishu_Content_C_Notify = "6007";//微纸条内容评论
		String Lang_Banner_Notify = "8000"; //微句轮播推荐
		String Comment_Collection_Notify = "8001"; //评论收录在热评榜
	}
	
	//具体消息类型
	public static interface MessageDetailType{
		/***系统消息***/
		//系统定制消息---好友验证请求
		String TYPE_SYSTEM_FRIEND_REQUEST = "1000";
		//系统定制消息---同意好友请求
		String TYPE_SYSTEM_FRIEND_AGREE = "1001";
		//系统定制消息---进群请求
		String TYPE_SYSTEM_GROUP_REQUEST = "1002";
		//系统定制消息---同意进群请求
		String TYPE_SYSTEM_GROUP_AGREE = "1003";
		//系统定制消息---好友下线消息
		String TYPE_SYSTEM_FRIEND_OFFLINE = "9000";
		//系统定制消息---好友上线消息
		String TYPE_SYSTEM_FRIEND_ONLINE = "9001";
		
		//系统定制消息---建立连接
		String TYPE_SYSTEM_CONNECT = "9002";
		//系统定制消息---断开连接
		String TYPE_SYSTEM_DISCONNECT = "9003";
		//系统定制消息---获取用户连接信息
		String TYPE_SYSTEM_CONNECTINFO = "9004";
		//系统定制消息---强行用户下线通知
		String TYPE_SYSTEM_OFFLINE = "9005";
		
		
		/***普通消息***/
		//文本消息
		String TYPE_TEXT_MSG = "Msg:Text";
		//语音消息
		String TYPE_VOICE_MSG = "Msg:Voice";
		//图片消息
		String TYPE_IMAGE_MSG = "Msg:Image";
		//位置消息
		String TYPE_LOCATION_MSG = "Msg:Location";
	}

}
